cimsTech.animation('.repeat-animation', function() {
    return {
        enter: function(element, done) {
            element.css({
                position: 'relative',
                left: -10,
                opacity: 0
            });
            element.animate({
                left: 0,
                opacity: 1
            }, done);
        },
        leave: function(element, done) {
            element.css({
                position: 'relative',
                left: 0,
                opacity: 1
            });
            element.animate({
                left: -10,
                opacity: 0
            }, done);
        },
        move: function(element, done) {
            element.css({
                left: '2px',
                opacity: 0.5
            });
            element.animate({
                left: '0px',
                opacity: 1
            }, done);
        }
    };
});
cimsTech.animation('.view-slide-in', function() {
    return {
        enter: function(element, done) {
            element.css({
                position: 'relative',
                top: '0px',
                right: '20%'
            }).animate({
                top: 0,
                right: 0
            }, 300, done);
        },
        leave: function(element, done) {
            element.css({
                left: 0,
                position: 'relative'
            });
            element.animate({
                left: '100%'
            }, 300, done);
        }
    };
});